package com.hskj.exception;
//自定义的异常往往都是 运行时异常
public class MyException extends RuntimeException{
    private  int code;
    public MyException(int code ,String message){
        super(message);
        this.code=code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
